package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    public void add(Role role, Integer[] permissionIds,Integer[] menuIds);
    public void setRoleAndPermission(Integer Role, Integer[] permissionIds);
    public void setRoleAndMenu(Integer Role,Integer[] menuIds);
    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);
    public void delete(Integer id);
    public void edit(Role role,Integer[] permissionIds,Integer[] menuIds);
    public Role findById(Integer id);
    List<Integer> findPermissionIdsByRoleId(Integer id);
    List<Integer> findMenuIdsByRoleId(Integer id);
    public List<Permission> findPermissionAll();
    public List<Menu> findMenuAll();

    List<Role> findAll();
}
